package edu.nwpu.zya.coreops.modules.alert.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import edu.nwpu.zya.coreops.common.utils.PageUtils;
import edu.nwpu.zya.coreops.common.utils.Query;

import edu.nwpu.zya.coreops.modules.alert.dao.RuleAppRelationDao;
import edu.nwpu.zya.coreops.modules.alert.entity.RuleAppRelationEntity;
import edu.nwpu.zya.coreops.modules.alert.service.RuleAppRelationService;


@Service("ruleAppRelationService")
public class RuleAppRelationServiceImpl extends ServiceImpl<RuleAppRelationDao, RuleAppRelationEntity> implements RuleAppRelationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RuleAppRelationEntity> page = this.page(
                new Query<RuleAppRelationEntity>().getPage(params),
                new QueryWrapper<RuleAppRelationEntity>()
        );

        return new PageUtils(page);
    }

}